﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
using FSS.Core.Util;
using FSS.Core.Controls;
using FSS.BLL.Entities;
using FSS.BLL.Services;

namespace SalesManagement.Modules.Warehouse
{
    public partial class Inventory : BasePage
    {
        public Inventory()
            : base(SCREENS.INVENTORY)
        {

        }
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        [DirectMethod]
        public void DocumentReady()
        {
            LoadWarehouse();
           
        }
        /// <summary>
        /// Load Kho hàng
        /// </summary>

        private void LoadWarehouse()
        {
            WareHouseEntity warehouseE = new WareHouseEntity();
            WareHouseService warehouseS = WareHouseService.GetInstance();
            IList<WareHouseEntity> lstWarehouse = warehouseS.LoadAll();
            if (null != lstWarehouse)
            {
                this.storeWarehouse.DataSource = lstWarehouse;
                this.storeWarehouse.DataBind();
            }
        }
        protected void grdMain_OnCommand(object sender, DirectEventArgs e) { }
        public void btnAdd_Click(object sender, DirectEventArgs e)
        {
           
        }
        public void btnEdit_Click(object sender, DirectEventArgs e) { }
        public void btnDelete_Click(object sender, DirectEventArgs e) { }
        public void btnFind_Click(object sender, DirectEventArgs e) { }
    }
}
